package com.green.ioc.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class SttBook {
    @Value("1")
    private Long id;

    @Value("老王历险记")
    private String bookName;

    @Value("老王")
    private String author;
}
